import request from './request'

export const getAdmin = () => {
  return request({
    url: 'admin1/',
    method: 'GET'
  })
}
export const addAdmin = (data) => {
  return request({
    url: 'admin3/',
    method: 'POST',
    data
  })
}

export const editAdmin = (data) => {
  return request({
    url: 'admin4/',
    method: 'post',
    data
  })
}

export const deleteAdmin = (account) => {
  return request({
    url: '/admin2/',
    method: 'POST',
    data: {
      account
    }
  })
}
